package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 购物车表
 *
 * @TableName cart
 */
@TableName(value = "cart")
@Data
public class Cart implements Serializable {
    /**
     * 数据Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * skuId
     */
    @TableField(value = "goods_sku_id")
    private Long goodsSkuId;

    /**
     * 商品数量
     */
    @TableField(value = "goods_num")
    private Integer goodsNum;

    /**
     * 用户Id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}